package com.itheima.mapper;

import com.itheima.domain.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    @Select("SELECT * FROM USER WHERE NAME LIKE CONCAT(#{keyword},'%') ORDER BY `search_count` DESC LIMIT 0,3")

    List<User> findByName(String keyword);


}
